package org.xiexiake.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 用户(User)表实体类
 *
 * @author makejava
 * @since 2021-04-24 16:53:12
 */
@SuppressWarnings("serial")
@TableName("user")
public class User extends Model<User> {

  //用户id
  @TableField("id")
  private Integer id;
  //用户账号
  @TableField("username")
  private String username;
  //用户密码
  @TableField("password")
  private String password;
  //用户邮箱
  @TableField("email")
  private String email;
  //用户手机号
  @TableField("phone")
  private String phone;
  //用户昵称
  @TableField("petname")
  private String petname;
  //用户介绍
  @TableField("introduce")
  private String introduce;


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getPetname() {
    return petname;
  }

  public void setPetname(String petname) {
    this.petname = petname;
  }

  public String getIntroduce() {
    return introduce;
  }

  public void setIntroduce(String introduce) {
    this.introduce = introduce;
  }

  /**
   * 获取主键值
   *
   * @return 主键值
   */
  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
